import socket

if __name__ == '__main__':
    s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s1.connect(("192.168.22.29", 8080))
    s1.send("你好我是客户端".encode("gbk"))
    data = s1.recv(1024)
    print(data.decode("gbk"))
